///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Mar  6 2009)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "paneltaskhistorygui.h"

///////////////////////////////////////////////////////////////////////////

PanelTaskHistoryGui::PanelTaskHistoryGui( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	wxBoxSizer* bSizer1;
	bSizer1 = new wxBoxSizer( wxHORIZONTAL );
	
	m_book = new wxListbook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLB_DEFAULT );
	m_panelAll = new wxPanel( m_book, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer2;
	bSizer2 = new wxBoxSizer( wxVERTICAL );
	
	m_listHistory = new wxListCtrl( m_panelAll, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
	bSizer2->Add( m_listHistory, 2, wxEXPAND|wxRIGHT|wxLEFT, 5 );
	
	m_panelAll->SetSizer( bSizer2 );
	m_panelAll->Layout();
	bSizer2->Fit( m_panelAll );
	m_book->AddPage( m_panelAll, _("All"), true );
	m_panelByDate = new wxPanel( m_book, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer3;
	bSizer3 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer4;
	bSizer4 = new wxBoxSizer( wxHORIZONTAL );
	
	m_btnDateMinus = new wxButton( m_panelByDate, wxID_ANY, _("<<"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
	bSizer4->Add( m_btnDateMinus, 0, wxALL, 5 );
	
	wxString m_choiceMonthChoices[] = { _("Juanary"), _("February"), _("March"), _("April"), _("May"), _("June"), _("July"), _("August"), _("September"), _("October"), _("November"), _("December") };
	int m_choiceMonthNChoices = sizeof( m_choiceMonthChoices ) / sizeof( wxString );
	m_choiceMonth = new wxChoice( m_panelByDate, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMonthNChoices, m_choiceMonthChoices, 0 );
	m_choiceMonth->SetSelection( 0 );
	bSizer4->Add( m_choiceMonth, 0, wxALL, 5 );
	
	m_spinYear = new wxSpinCtrl( m_panelByDate, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 60,-1 ), wxSP_ARROW_KEYS, 2000, 2100, 2000 );
	bSizer4->Add( m_spinYear, 0, wxALL, 5 );
	
	m_btnDatePLus = new wxButton( m_panelByDate, wxID_ANY, _(">>"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
	bSizer4->Add( m_btnDatePLus, 0, wxALL, 5 );
	
	bSizer3->Add( bSizer4, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
	
	m_listHistoryByDate = new wxListCtrl( m_panelByDate, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
	bSizer3->Add( m_listHistoryByDate, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
	
	m_panelByDate->SetSizer( bSizer3 );
	m_panelByDate->Layout();
	bSizer3->Fit( m_panelByDate );
	m_book->AddPage( m_panelByDate, _("By date"), false );
	m_panelByTask = new wxPanel( m_book, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer5;
	bSizer5 = new wxBoxSizer( wxVERTICAL );
	
	wxArrayString m_choiceTaskChoices;
	m_choiceTask = new wxChoice( m_panelByTask, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceTaskChoices, 0 );
	m_choiceTask->SetSelection( 0 );
	bSizer5->Add( m_choiceTask, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
	
	m_listHistoryByTask = new wxListCtrl( m_panelByTask, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
	bSizer5->Add( m_listHistoryByTask, 1, wxALL|wxEXPAND, 5 );
	
	m_panelByTask->SetSizer( bSizer5 );
	m_panelByTask->Layout();
	bSizer5->Fit( m_panelByTask );
	m_book->AddPage( m_panelByTask, _("By task"), false );
	m_panelInitial = new wxPanel( m_book, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer6;
	bSizer6 = new wxBoxSizer( wxVERTICAL );
	
	m_listVsInitial = new wxListCtrl( m_panelInitial, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
	bSizer6->Add( m_listVsInitial, 1, wxEXPAND, 5 );
	
	m_panelInitial->SetSizer( bSizer6 );
	m_panelInitial->Layout();
	bSizer6->Fit( m_panelInitial );
	m_book->AddPage( m_panelInitial, _("Vs initial"), false );
	#ifndef __WXGTK__ // Small icon style not supported in GTK
	wxListView* m_bookListView = m_book->GetListView();
	long m_bookFlags = m_bookListView->GetWindowStyleFlag();
	m_bookFlags = ( m_bookFlags & ~wxLC_ICON ) | wxLC_SMALL_ICON;
	m_bookListView->SetWindowStyleFlag( m_bookFlags );
	#endif
	
	bSizer1->Add( m_book, 1, wxEXPAND | wxALL, 5 );
	
	this->SetSizer( bSizer1 );
	this->Layout();
	bSizer1->Fit( this );
	
	// Connect Events
	m_btnDateMinus->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelTaskHistoryGui::OnDateMinus ), NULL, this );
	m_choiceMonth->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PanelTaskHistoryGui::OnChoiceMonth ), NULL, this );
	m_spinYear->Connect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( PanelTaskHistoryGui::OnSpinYear ), NULL, this );
	m_btnDatePLus->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelTaskHistoryGui::OnDatePlus ), NULL, this );
	m_choiceTask->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PanelTaskHistoryGui::OnChoiceTask ), NULL, this );
}

PanelTaskHistoryGui::~PanelTaskHistoryGui()
{
	// Disconnect Events
	m_btnDateMinus->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelTaskHistoryGui::OnDateMinus ), NULL, this );
	m_choiceMonth->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PanelTaskHistoryGui::OnChoiceMonth ), NULL, this );
	m_spinYear->Disconnect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( PanelTaskHistoryGui::OnSpinYear ), NULL, this );
	m_btnDatePLus->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelTaskHistoryGui::OnDatePlus ), NULL, this );
	m_choiceTask->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PanelTaskHistoryGui::OnChoiceTask ), NULL, this );
}
